<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
  <title>Description of VMT_BuildXYZOutput</title>
  <meta name="keywords" content="VMT_BuildXYZOutput">
  <meta name="description" content="Takes multiple ensembles and writes them to an xyz data file with columns">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="m2html &copy; 2005 Guillaume Flandin">
  <meta name="robots" content="index, follow">
  <link type="text/css" rel="stylesheet" href="../m2html.css">
  <script type="text/javascript">
    if (top.frames.length == 0) { top.location = "../index.html"; };
  </script>
</head>
<body>
<a name="_top"></a>
<!-- menu.html trunk -->
<h1>VMT_BuildXYZOutput
</h1>

<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>Takes multiple ensembles and writes them to an xyz data file with columns</strong></div>

<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>function xyzdata = VMT_BuildXYZOutput(V) </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre class="comment"> Takes multiple ensembles and writes them to an xyz data file with columns
 for each variable.

 P.R. Jackson, 3-24-09</pre></div>

<!-- crossreference -->
<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
This function calls:
<ul style="list-style-image:url(../matlabicon.gif)">
</ul>
This function is called by:
<ul style="list-style-image:url(../matlabicon.gif)">
</ul>
<!-- crossreference -->



<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function xyzdata = VMT_BuildXYZOutput(V)</a>
0002 <span class="comment">% Takes multiple ensembles and writes them to an xyz data file with columns</span>
0003 <span class="comment">% for each variable.</span>
0004 <span class="comment">%</span>
0005 <span class="comment">% P.R. Jackson, 3-24-09</span>
0006 
0007 format long
0008 xyzdata = [];
0009 
0010 <span class="keyword">for</span> i = 1:size(V.mcsX,1)
0011     <span class="keyword">for</span> j = 1:size(V.mcsX,2)
0012         tempvec = [V.mcsX(i,j) V.mcsY(i,j) V.mcsDepth(i,j) V.mcsMag(i,j) V.mcsDir(i,j) V.u(i,j) V.v(i,j) V.w(i,j) V.vp(i,j) V.vs(i,j) V.mcsEast(i,j) V.mcsNorth(i,j) V.mcsDirDevp(i,j) V.mcsBack(i,j)];
0013         <span class="keyword">if</span> ~isnan(sum(tempvec)) 
0014             xyzdata = [xyzdata; tempvec];
0015         <span class="keyword">end</span>
0016     <span class="keyword">end</span>
0017 <span class="keyword">end</span>
0018 format short</pre></div>
<hr><address>Generated on Wed 04-Jun-2014 14:21:02 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> &copy; 2005</address>
</body>
</html>